home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 92 / CDMM92_1.ISO / SOF 2 SDK / sof2sdk-101.msi / _92D6AC311BB48EBA344BBABC89DA6AB0 / _7D6A8F31631F4401AA606E7F60476701 < prev    next >
Encoding:
Text File  |  2002-03-23  |  11.9 KB  |  549 lines

  1. {
  2.     assetGlobalDef 
  3.     {
  4.         defaultFont        "hud"
  5.  
  6.         cursor            "gfx/menus/cursor/cursor"            // cursor    
  7.  
  8.         fadeClamp        1.0                    // sets the fadeup alpha
  9.         fadeCycle        1                    // how often fade happens in milliseconds
  10.         fadeAmount        0.1                    // amount to adjust alpha per cycle
  11.  
  12.         shadowColor        0.1 0.1 0.1 0.25            // shadow color
  13.       }
  14.  
  15.     \\ INGAME MENU \\
  16.  
  17.     menuDef 
  18.     {
  19.         name            "ingame"
  20.         visible            0
  21.         fullScreen        0
  22.         rect            0 0 640 480
  23.         focusColor        1 .75 0 1
  24.         disableColor    .5 .5 .5 1
  25.  
  26.         outOfBoundsClick
  27.  
  28.         onOpen
  29.         {
  30.             setitemcolor ingame_button_text_group backcolor 0 0 0 0;
  31.             setitemcolor ingame_button_text_group forecolor .12 .14 .08 1;
  32.  
  33.             show ingame_button_group;
  34.         }
  35.  
  36.         ////////////////////////////////////////////////////////////////////////
  37.         //  Dialog frame
  38.         ////////////////////////////////////////////////////////////////////////
  39.  
  40.         itemDef
  41.         {
  42.             name        window
  43.             style        WINDOW_STYLE_SHADER
  44.             rect        4 4 632 28
  45.             background    "gfx/menus/ingame/background.png"
  46.             visible        1
  47.             decoration
  48.         }
  49.  
  50.         itemDef
  51.         {
  52.             name        window
  53.             style        WINDOW_STYLE_SHADER
  54.             rect        0 0 8 8
  55.             background    "gfx/menus/ingame/frame_topleft.png"
  56.             visible        1
  57.             decoration
  58.         }
  59.  
  60.         itemDef
  61.         {
  62.             name        window
  63.             style        WINDOW_STYLE_SHADER
  64.             rect        634 0 8 8
  65.             background    "gfx/menus/ingame/frame_topright.png"
  66.             visible        1
  67.             decoration
  68.         }
  69.  
  70.         itemDef
  71.         {
  72.             name        window
  73.             style        WINDOW_STYLE_SHADER
  74.             rect        5 0 630 8
  75.             background    "gfx/menus/ingame/frame_top.png"
  76.             visible        1
  77.             decoration
  78.         }
  79.  
  80.         itemDef
  81.         {
  82.             name        window
  83.             style        WINDOW_STYLE_SHADER
  84.             rect        0 26 8 8
  85.             background    "gfx/menus/ingame/frame_bottomleft.png"
  86.             visible        1
  87.             decoration
  88.         }
  89.  
  90.         itemDef
  91.         {
  92.             name        window
  93.             style        WINDOW_STYLE_SHADER
  94.             rect        634 26 8 8
  95.             background    "gfx/menus/ingame/frame_bottomright.png"
  96.             visible        1
  97.             decoration
  98.         }
  99.  
  100.         itemDef
  101.         {
  102.             name        window
  103.             style        WINDOW_STYLE_SHADER
  104.             rect        5 26 629 8
  105.             background    "gfx/menus/ingame/frame_bottom.png"
  106.             visible        1
  107.             decoration
  108.         }
  109.  
  110.         itemDef
  111.         {
  112.             name        window
  113.             style        WINDOW_STYLE_SHADER
  114.             rect        634 4 8 22
  115.             background    "gfx/menus/ingame/frame_right.png"
  116.             visible        1
  117.             decoration
  118.         }
  119.  
  120.         itemDef
  121.         {
  122.             name        window
  123.             style        WINDOW_STYLE_SHADER
  124.             rect        0 5 8 22
  125.             background    "gfx/menus/ingame/frame_left.png"
  126.             visible        1
  127.             decoration
  128.         }
  129.     
  130.         itemdef
  131.         {
  132.             name        about_button_text
  133.             group        ingame_button_text_group
  134.             style        WINDOW_STYLE_FILLED
  135.             rect        17 7 82 18
  136.             text        "About"    
  137.             textalign    1
  138.               textalignx    41      
  139.             textaligny    2
  140.             textfont    "hud"
  141.             textscale    .43
  142.             forecolor    0 0 0 1
  143.             backcolor    0 0 0 0
  144.             visible        1
  145.         }
  146.  
  147.         /////////////////////////////////////////////////////////////
  148.         // About button
  149.         /////////////////////////////////////////////////////////////
  150.         itemdef
  151.         {
  152.             name        about_button
  153.             group        ingame_button_group
  154.             type        ITEM_TYPE_BUTTON
  155.             rect        17 7 82 18
  156.             visible        1
  157.             
  158.             action 
  159.             { 
  160.                 play "sound/misc/menus/select.wav" ; 
  161.  
  162.                 close ingame_leave ;
  163.                 close ingame_setup;
  164.                 close ingame_callvote;
  165.                 close ingame_vote;
  166.                 close ingame_player;
  167.  
  168.                 open ingame_about;
  169.  
  170.                 setitemcolor ingame_button_text_group backcolor 0 0 0 0;
  171.                 setitemcolor ingame_button_text_group forecolor .12 .14 .08 1;
  172.  
  173.                 setitemcolor about_button_text backcolor .12 .14 .08 1;
  174.                 setitemcolor about_button_text forecolor .49 .56 .27 1;
  175.  
  176.                 show ingame_button_group;
  177.                 hide about_button;
  178.             }
  179.             mouseEnter 
  180.             { 
  181.                 play "sound/misc/menus/hilite1.wav" ; 
  182.                 setitemcolor about_button_text backcolor .12 .14 .08 1;
  183.                 setitemcolor about_button_text forecolor .49 .56 .27 1;
  184.             }                 
  185.             mouseExit 
  186.             { 
  187.                 setitemcolor about_button_text backcolor 0 0 0 0;
  188.                 setitemcolor about_button_text forecolor .12 .14 .08 1;
  189.             }
  190.         }
  191.  
  192.         itemDef
  193.         {
  194.             name        join_button_text
  195.             group        ingame_button_text_group
  196.             style        WINDOW_STYLE_FILLED
  197.               rect        120 7 82 18   
  198.               text        "Player"
  199.               textalign    1    
  200.               textalignx    41      
  201.             textaligny    2
  202.             textfont    "hud"
  203.             textscale    .43
  204.             forecolor    0 0 0 1
  205.             backcolor    0 0 0 0
  206.             visible 1
  207.         }
  208.  
  209.         itemDef 
  210.         {
  211.               name        join_button
  212.             group        ingame_button_group
  213.             type        ITEM_TYPE_BUTTON
  214.               rect        120 7 82 18   
  215.             visible        1
  216.  
  217.             action 
  218.             { 
  219.                 play "sound/misc/menus/select.wav" ; 
  220.  
  221.                 close ingame_leave ;
  222.                 close ingame_setup;
  223.                 close ingame_callvote;
  224.                 close ingame_vote;
  225.                 close ingame_about;
  226.  
  227.                 open ingame_player;
  228.  
  229.                 setitemcolor ingame_button_text_group backcolor 0 0 0 0;
  230.                 setitemcolor ingame_button_text_group forecolor .12 .14 .08 1;
  231.  
  232.                 setitemcolor join_button_text backcolor .12 .14 .08 1;
  233.                 setitemcolor join_button_text forecolor .49 .56 .27 1;
  234.  
  235.                 show ingame_button_group;
  236.                 hide join_button;
  237.             }
  238.             mouseEnter 
  239.             { 
  240.                 play "sound/misc/menus/hilite1.wav" ; 
  241.                 setitemcolor join_button_text backcolor .12 .14 .08 1;
  242.                 setitemcolor join_button_text forecolor .49 .56 .27 1;
  243.             }                 
  244.             mouseExit 
  245.             { 
  246.                 setitemcolor join_button_text backcolor 0 0 0 0;
  247.                 setitemcolor join_button_text forecolor .12 .14 .08 1;
  248.             }
  249.         }
  250.  
  251. /*
  252.         itemDef
  253.         {
  254.             name        addbot_button_text
  255.             group        ingame_button_text_group
  256.             style        WINDOW_STYLE_FILLED
  257.               rect        192 11 82 18
  258.               text        "Add Bot"
  259.               textalign    1    
  260.               textalignx    41      
  261.             textaligny    2
  262.             textfont    "hud"
  263.             textscale    .43
  264.             forecolor    0 0 0 1
  265.             backcolor    0 0 0 0
  266.             visible        1
  267.         }
  268.  
  269.         itemDef 
  270.         {
  271.               name        addbot_button
  272.             group        ingame_button_group
  273.             type        ITEM_TYPE_BUTTON
  274.               rect        192 11 82 18
  275.             visible        1
  276.  
  277.             action 
  278.             { 
  279.                 play "sound/misc/menus/select.wav" ; 
  280.  
  281.                 close ingame_leave ;
  282.                 close ingame_setup;
  283.                 close ingame_callvote;
  284.                 close ingame_vote;
  285.                 close ingame_player;
  286.                 close ingame_about;
  287.  
  288.                 open ingame_addbot;
  289.  
  290.                 setitemcolor ingame_button_text_group backcolor 0 0 0 0;
  291.                 setitemcolor ingame_button_text_group forecolor .12 .14 .08 1;
  292.  
  293.                 setitemcolor addbot_button_text backcolor .12 .14 .08 1;
  294.                 setitemcolor addbot_button_text forecolor .49 .56 .27 1;
  295.  
  296.                 show ingame_button_group;
  297.                 hide addbot_button;
  298.             }
  299.             mouseEnter 
  300.             { 
  301.                 play "sound/misc/menus/hilite1.wav" ; 
  302.                 setitemcolor addbot_button_text backcolor .12 .14 .08 1;
  303.                 setitemcolor addbot_button_text forecolor .49 .56 .27 1;
  304.             }                 
  305.             mouseExit 
  306.             { 
  307.                 setitemcolor addbot_button_text backcolor 0 0 0 0;
  308.                 setitemcolor addbot_button_text forecolor .12 .14 .08 1;
  309.             }
  310.         }
  311. */
  312.  
  313.         itemDef
  314.         {
  315.             name        options_button_text
  316.             group        ingame_button_text_group
  317.             style        WINDOW_STYLE_FILLED
  318.               rect        225 7 82 18
  319.               text        "Options"
  320.               textalign    1    
  321.               textalignx    41      
  322.             textaligny    2
  323.             textfont    "hud"
  324.             textscale    .43
  325.             forecolor    0 0 0 1
  326.             backcolor    0 0 0 0
  327.             visible        1
  328.         }
  329.  
  330.         itemDef 
  331.         {
  332.               name        options_button
  333.             group        ingame_button_group
  334.             type        ITEM_TYPE_BUTTON
  335.               rect        225 7 82 18
  336.             visible        1
  337.     
  338.             action 
  339.             { 
  340.                 play "sound/misc/menus/select.wav" ; 
  341.  
  342.                 close ingame_leave ;
  343.                 close ingame_callvote;
  344.                 close ingame_vote;
  345.                 close ingame_player;
  346.                 close ingame_about;
  347.  
  348.                 open ingame_setup ;
  349.  
  350.                 setitemcolor ingame_button_text_group backcolor 0 0 0 0;
  351.                 setitemcolor ingame_button_text_group forecolor .12 .14 .08 1;
  352.  
  353.                 setitemcolor options_button_text backcolor .12 .14 .08 1;
  354.                 setitemcolor options_button_text forecolor .49 .56 .27 1;
  355.  
  356.                 show ingame_button_group;
  357.                 hide options_button;
  358.             }
  359.             mouseEnter 
  360.             { 
  361.                 play "sound/misc/menus/hilite1.wav" ; 
  362.                 setitemcolor options_button_text backcolor .12 .14 .08 1;
  363.                 setitemcolor options_button_text forecolor .49 .56 .27 1;
  364.             }                 
  365.             mouseExit 
  366.             { 
  367.                 setitemcolor options_button_text backcolor 0 0 0 0;
  368.                 setitemcolor options_button_text forecolor .12 .14 .08 1;
  369.             }
  370.         }
  371.  
  372.         itemDef
  373.         {
  374.             name        vote_button_text
  375.             group        ingame_button_text_group
  376.             style        WINDOW_STYLE_FILLED
  377.               rect        331 7 82 18
  378.               text        "Vote"
  379.               textalign    1    
  380.               textalignx    41  
  381.             textaligny    2
  382.             textfont    "hud"
  383.             textscale    .43
  384.             forecolor    0 0 0 1
  385.             backcolor    0 0 0 0
  386.             visible        1
  387.         }
  388.  
  389.         itemDef 
  390.         {
  391.               name        vote_button
  392.             group        ingame_button_group
  393.             type        ITEM_TYPE_BUTTON
  394.               rect        331 7 82 18
  395.             visible        1
  396.  
  397.             action 
  398.             { 
  399.                 play "sound/misc/menus/select.wav" ; 
  400.  
  401.                 close ingame_leave ;
  402.                 close ingame_callvote;
  403.                 close ingame_setup;
  404.                 close ingame_player;
  405.                 close ingame_about;
  406.  
  407.                 open ingame_vote;
  408.  
  409.                 setitemcolor ingame_button_text_group backcolor 0 0 0 0;
  410.                 setitemcolor ingame_button_text_group forecolor .12 .14 .08 1;
  411.  
  412.                 setitemcolor vote_button_text backcolor .12 .14 .08 1;
  413.                 setitemcolor vote_button_text forecolor .49 .56 .27 1;
  414.  
  415.                 show ingame_button_group;
  416.                 hide vote_button;
  417.             }
  418.             mouseEnter 
  419.             { 
  420.                 play "sound/misc/menus/hilite1.wav" ; 
  421.                 setitemcolor vote_button_text backcolor .12 .14 .08 1;
  422.                 setitemcolor vote_button_text forecolor .49 .56 .27 1;
  423.             }                 
  424.             mouseExit 
  425.             { 
  426.                 setitemcolor vote_button_text backcolor 0 0 0 0;
  427.                 setitemcolor vote_button_text forecolor .12 .14 .08 1;
  428.             }
  429.         }
  430.  
  431.         itemDef
  432.         {
  433.             name        callvote_button_text
  434.             group        ingame_button_text_group
  435.             style        WINDOW_STYLE_FILLED
  436.               rect        435 7 82 18
  437.               text        "Call Vote"
  438.               textalign    1    
  439.               textalignx    41      
  440.             textaligny    2
  441.             textfont    "hud"
  442.             textscale    .43
  443.             forecolor    0 0 0 1
  444.             backcolor    0 0 0 0
  445.             visible        1
  446.         }
  447.  
  448.         itemDef 
  449.         {
  450.               name        callvote_button
  451.             group        ingame_button_group
  452.             type        ITEM_TYPE_BUTTON
  453.               rect        435 7 82 18
  454.             visible        1
  455.  
  456.             action 
  457.             { 
  458.                 play "sound/misc/menus/select.wav" ; 
  459.  
  460.                 close ingame_leave ;
  461.                 close ingame_setup;
  462.                 close ingame_vote;
  463.                 close ingame_player;
  464.                 close ingame_about;
  465.  
  466.                 open ingame_callvote;
  467.  
  468.                 setitemcolor ingame_button_text_group backcolor 0 0 0 0;
  469.                 setitemcolor ingame_button_text_group forecolor .12 .14 .08 1;
  470.  
  471.                 setitemcolor callvote_button_text backcolor .12 .14 .08 1;
  472.                 setitemcolor callvote_button_text forecolor .49 .56 .27 1;
  473.  
  474.                 show ingame_button_group;
  475.                 hide callvote_button;
  476.             }
  477.             mouseEnter 
  478.             { 
  479.                 play "sound/misc/menus/hilite1.wav" ; 
  480.                 setitemcolor callvote_button_text backcolor .12 .14 .08 1;
  481.                 setitemcolor callvote_button_text forecolor .49 .56 .27 1;
  482.             }                 
  483.             mouseExit 
  484.             { 
  485.                 setitemcolor callvote_button_text backcolor 0 0 0 0;
  486.                 setitemcolor callvote_button_text forecolor .12 .14 .08 1;
  487.             }
  488.         }
  489.  
  490.         itemDef
  491.         {
  492.             name        leave_button_text
  493.             group        ingame_button_text_group
  494.             style        WINDOW_STYLE_FILLED
  495.               rect        540 7 83 18
  496.               text        "Exit"
  497.               textalign    1    
  498.               textalignx    41      
  499.             textaligny    2
  500.             textfont    "hud"
  501.             textscale    .43
  502.             forecolor    0 0 0 1
  503.             backcolor    0 0 0 0
  504.             visible        1
  505.         }
  506.  
  507.         itemDef 
  508.         {
  509.               name        leave_button
  510.             group        ingame_button_group
  511.             type        ITEM_TYPE_BUTTON
  512.               rect        540 7 83 18
  513.             visible        1
  514.     
  515.             action 
  516.             {
  517.                 play "sound/misc/menus/select.wav" ; 
  518.  
  519.                 close ingame_setup;
  520.                 close ingame_vote;
  521.                 close ingame_player;
  522.                 close ingame_about;
  523.                 close ingame_callvote;
  524.  
  525.                 open ingame_leave 
  526.  
  527.                 setitemcolor ingame_button_text_group backcolor 0 0 0 0;
  528.                 setitemcolor ingame_button_text_group forecolor .12 .14 .08 1;
  529.  
  530.                 setitemcolor leave_button_text backcolor .12 .14 .08 1;
  531.                 setitemcolor leave_button_text forecolor .49 .56 .27 1;
  532.  
  533.                 show ingame_button_group;
  534.                 hide leave_button;
  535.             }
  536.             mouseEnter 
  537.             { 
  538.                 play "sound/misc/menus/hilite1.wav" ; 
  539.                 setitemcolor leave_button_text backcolor .12 .14 .08 1;
  540.                 setitemcolor leave_button_text forecolor .49 .56 .27 1;
  541.             }                 
  542.             mouseExit 
  543.             { 
  544.                 setitemcolor leave_button_text backcolor 0 0 0 0;
  545.                 setitemcolor leave_button_text forecolor .12 .14 .08 1;
  546.             }
  547.         }
  548.     }
  549. }